import Emberbox from "@/utils/mapbox/engine";

const addNavigatePath = (emberbox: Emberbox) => {
  emberbox.navigations.setPathSource(data);
  emberbox.navigations.playPathSource();
};
export default addNavigatePath;

var data = {
  type: "FeatureCollection",
  features: [
    {
      type: "Feature",
      properties: {},
      geometry: {
        coordinates: [
          [108.94936242395653, 34.26117381009942],
          [108.94739115488159, 34.26101864667871],
          [108.9437928065683, 34.26094106486069],
          [108.94204056739068, 34.26259612812032],
          [108.94213443734702, 34.265518269675795],
          [108.94254120715522, 34.271543249898116],
          [108.94948758389762, 34.27146567778922],
          [108.94964403382357, 34.27050894922293],
          [108.94842372439717, 34.26978493117936],
          [108.94814211452831, 34.26606131134447],
          [108.95070789332414, 34.26510452128906],
          [108.95336754207801, 34.26582857963018],
          [108.95840522971514, 34.26575100224875],
          [108.95821748980245, 34.271051958663804],
          [108.94961274383877, 34.27516320207009],
          [108.94241604721412, 34.27508563330035],
          [108.93784770935673, 34.27511148956508],
          [108.93803544926931, 34.271310533355276],
          [108.93816060921046, 34.26598373417767],
          [108.93825447916669, 34.260630736874404],
          [108.94232217725784, 34.25755325570299],
          [108.94948758389762, 34.25755325570299],
          [108.95862425961252, 34.25882046746749],
          [108.95846780968475, 34.26122553117676],
          [108.96629030601508, 34.26122553117676],
          [108.96629030601508, 34.26575100224875],
          [108.96629030601508, 34.27164667926655],
          [108.95790458994878, 34.275370051772015],
        ],
        type: "LineString",
      },
    },
  ],
};
